home *** CD-ROM | disk | FTP | other *** search
- # Beckemeyer Development PPP preferred, SLIP alternate script
- # Copyright 1995 Quarterdeck Corporation
- # 5-8-95 JK
- # Modified 5-9-95 CEL
-
- STRING username
- STRING password
- STRING framing
- STRING IPAddress
-
- # uncomment for debugging
- # TRACE ON
-
- SetTimeOut 90
-
- CfgGetValue "Username" username
- IF result = 0 THEN
- GetInput "Enter your username:" username
- IF result = 0 THEN
- PRINT "Warning, no username entered."
- ELSE
- PRINT "Username set to: ";username
- ENDIF
- ENDIF
-
- CfgGetValue "Password" password
- IF result = 0 THEN
- GetPassword "Enter your password:" password
- IF result = 0 THEN
- PRINT "Warning, no password entered."
- ELSE
- PRINT "Password set."
- ENDIF
- ENDIF
-
- CfgGetValue "Framing" framing
- IF result =0 THEN
- ABORT "Cannot load framing value from QDECK.INI!"
- ENDIF
-
- CommWaitFor "login:"
- IF framing = "MPPPP" THEN
- CommSend "P"
- ELSE
- CommSend "S"
- ENDIF
-
- CommSend username
- CommSend "%r"
-
- CommWaitFor "password:"
- CommSend password
- CommSend "%r"
-
- IF framing = "MPSLIP" THEN
- PRINT "Getting IP Address for SLIP."
- CommWaitFor ") to"
- CommReadIPAddr IPAddress
- IF result < 7 THEN # IP Address length test
- ABORT "Missing or invalid IP Address."
- ENDIF
- CfgSetValue "IPAddress" ipaddress
- PRINT "IP Address set to:"; ipaddress
- ENDIF
-
- END
-